package com.example.administrator.baikangxing.activity;

import android.content.Intent;
import android.view.View;
import android.widget.Button;
import android.widget.ListView;
import android.widget.TextView;

import com.example.administrator.baikangxing.R;
import com.example.administrator.baikangxing.config.Constants;
import com.example.administrator.baikangxing.view.CustomView;

public class OxygenActivity extends BaseActivity {

    private TextView type;
    private TextView number;
    private Button measure;
    private ListView data;
    private TextView time;
    private CustomView oxygen_customview;

    @Override
    public int getContentViewLayoutId() {
        return R.layout.activity_oxygen;
    }

    @Override
    public void initView() {
        setTitles("血氧测量");
        base_ib_menu.setVisibility(View.INVISIBLE);
        time = findView(R.id.oxy_tv_time);
        data = findView(R.id.oxy_lv_data);
        measure = findView(R.id.oxy_bt_measure);
        number = findView(R.id.oxy_tv_number);
        type = findView(R.id.oxy_tv_type);
        oxygen_customview = findView(R.id.oxygen_customview);
    }

    @Override
    public void initListener() {

    }

    @Override
    public void initData() {
        Intent intent = getIntent();
        String BloodPressure = intent.getStringExtra(Constants.HEALTH_TARGET[2]);
        oxygen_customview.setProgress(Integer.parseInt(BloodPressure));
        number.setText(BloodPressure);
    }
}
